package descentFly.away3D4.doors
{
	import away3d.containers.ObjectContainer3D;	
	import descentFly.away3D4.df_loadSection;
	import descentFly.df_space;
	
	public class df_door3DS extends df_door {
		public function df_door3DS(a_space:df_space, a_options:Object) {
			super(a_space, a_options);
		}
		
		override protected function initModel(a_model: ObjectContainer3D):void {
			if (a_model)
				super.initModel(a_model);
			else {
				var ls	: df_loadSection;
				ls 		= new df_loadSection();
				a_model = ls.addLoader3D(options.url);
				
				ls.endSection(function (): void {
					initModel(a_model);
				});
			}
		}
	}
}